﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcApplication2.Controllers
{
    public class Student
    {
        public int ID;
        public string Name;
        public int Old;
    }

    public class jQController : Controller
    {
        //
        // GET: /jQuery/

        public ActionResult Index()
        {
            return View();
        }

        public JsonResult GetMsg(string Msg)
        {
            IList<Student> students = new List<Student>();
            students.Add(new Student { ID = 1, Name = "小王", Old = 12 });
            students.Add(new Student { ID = 2, Name = "小李", Old = 13 });
            students.Add(new Student { ID = 3, Name = "小张", Old = 15 });
            students.Add(new Student { ID = 4, Name = "小洪", Old = 13 });
            students.Add(new Student { ID = 5, Name = "小于", Old = 11 });
            return Json(students);
        }
    }
}
